package com.tinem.platform.web.auth.config;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;
import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className Password
 * @description TODO
 * @site 
 * @company 
 * @create 2020-07-02 15:06
 */
public class Password {
    @Test
    public void encodePassword(){
        System.out.println(new BCryptPasswordEncoder().encode(""));;
        System.out.println(new Digester(DigestAlgorithm.SHA512).digestHex(""));
    }
}
